<!DOCTYPE html>
<html lang="zh">
<script>
  var _hmt = _hmt || [];
  (function () {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?bc04990a72f1dd0b20287368c447790d";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
  <title>成员录入 -Family族谱系统</title>
  <link rel="icon" href="favicon.ico" type="image/ico">
  <meta name="keywords" content="Family族谱系统">
  <meta name="description" content="Family族谱系统">
  <meta name="author" content="zeal">
  <link href="https://pan.zealsay.com/family/static/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/bootstrap-select\@1.13.9/dist/css/bootstrap-select.min.css">
  <link href="https://pan.zealsay.com/family/static/css/materialdesignicons.min.css" rel="stylesheet">
  <link href="https://pan.zealsay.com/family/static/css/style.min.css" rel="stylesheet">
</head>

<body class="lyear-layout-sidebar-close">
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    <aside class="lyear-layout-sidebar">

      <!-- logo -->
      <div id="logo" class="sidebar-header">
        <a href="index.html">
          <h4 class="h4 text-primary">Family族谱管理系统</h4>
        </a>
      </div>
      <div class="lyear-layout-sidebar-scroll">

        <nav class="sidebar-main">
          <ul class="nav nav-drawer">
            <li class="nav-item active"><a href="/index.html"><i class="mdi mdi-home"></i> 族谱树</a></li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 成员管理</a>
              <ul class="nav nav-subnav">
                <li><a href="/list.html">成员列表</a></li>
                <li><a href="/add.html">成员添加</a></li>
              </ul>
            </li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-account-multiple"></i> 分组管理</a>
              <ul class="nav nav-subnav">
                <li><a href="/group_add.html">群组添加</a></li>
                <li><a href="/group_list.html">群组列表</a></li>
              </ul>
            </li>
          </ul>
        </nav>
      </div>

    </aside>
    <!--End 左侧导航-->

    <!--头部信息-->
    <header class="lyear-layout-header">

      <nav class="navbar navbar-default">
        <div class="topbar">

          <div class="topbar-left">
            <div class="lyear-aside-toggler">
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
            </div>
            <span class="navbar-page-title"> 后台首页 </span>
          </div>

          <ul class="topbar-right">
            <li class="dropdown dropdown-profile">
              <a href="javascript:void(0)" data-toggle="dropdown">
                                <span>${session.SPRING_SECURITY_CONTEXT.authentication.principal.username!}  <span
                                  class="caret"></span></span>
              </a>
              <ul class="dropdown-menu dropdown-menu-right">
                <li><a href="/logout"><i class="mdi mdi-logout-variant"></i> 退出登录</a>
                </li>
              </ul>
            </li>
          </ul>

        </div>
      </nav>

    </header>
    <!--End 头部信息-->

    <!--页面主要内容-->
    <main class="lyear-layout-content">

      <div class="container-fluid">

        <div class="row">
          <div class="col-md-12">
            <div class="card">
              <div class="card-header">
                <h4>成员信息录入</h4>
              </div>
              <div class="card-body">

                <form class="form-horizontal" action="/user/add" method="post">
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="name">姓名<span
                      class="text-danger">*</span></label>
                    <div class="col-md-7">
                      <input class="form-control" type="text" id="name" name="name"
                             placeholder="请输入姓名..">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="gender">性别<span
                      class="text-danger">*</span></label>
                    <div class="col-md-7">
                      <select class="form-control selectpicker" id="gender" name="gender">
                        <option value="MALE">男</option>
                        <option value="FEMALE">女</option>
                      </select>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-md-3 control-label" for="spouse">配偶名称</label>
                    <div class="col-md-7">
                      <input class="form-control" type="text" id="spouse" name="spouse"
                             placeholder="请输入配偶名称,没有则不填写..">
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-md-3 control-label" for="introduction">备注</label>
                    <div class="col-md-7">
                        <textarea class="form-control" id="introduction" name="introduction"
                                  placeholder="请输入备注"></textarea>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-md-3 control-label" for="groupId">群组<span
                      class="text-danger">*</span></label>
                    <div class="col-md-7">
                      <select class="form-control selectpicker" id="groupId" name="groupId">
                        @ for(group in groups){
                        <option value="${group.id}">${group.name}</option>
                        @ }
                      </select>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-md-3 control-label" for="parentId">长辈名称<span
                      class="text-danger">*</span></label>
                    <div class="col-md-7">
                      <select class="form-control selectpicker" data-live-search="true"
                              id="parentId" name="parentId">
                        <option value="">选择长辈点,默认为根节点</option>
                        @ for(user in users){
                        <option data-tokens="yixue" value="${user.id}">${user.name}</option>
                        @ }
                      </select>
                    </div>
                  </div>


                  <div class="form-group">
                    <div class="col-md-9 col-md-offset-3">
                      <button class="btn btn-primary" type="submit">录入</button>
                    </div>
                  </div>
                </form>

              </div>
            </div>
          </div>
        </div>

      </div>

    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="https://pan.zealsay.com/family/static/js/jquery.min.js"></script>
<script type="text/javascript" src="https://pan.zealsay.com/family/static/js/bootstrap.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select\@1.13.9/dist/js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="https://pan.zealsay.com/family/static/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="https://pan.zealsay.com/family/static/js/main.min.js"></script>

<script type="text/javascript">

</script>
</body>

</html>